function resizeKanban(){
	var bodyHeight = $(window).height();

	if(bodyHeight < 500){
		$("#box_content").height(385);
	}else{
		var topHeight = 126;
		$("#box_content").height(bodyHeight - topHeight);
	}
}

$(window).resize(function() {
	resizeKanban();
});

$(document).ready(function(){
	$("#formUser").validate({
		submitHandler: function(form) {
			var query = $(form).serialize();
			
			$.ajax({
				url: SITE+"app/Views/V_User.php?f=saveUser&"+query,
				async: false,
				success: function(data){
					var obj = JSON.decode(data);

					resultMensage(obj, obj[0]);
				}
			});

			return false;
		}
	});

	resizeKanban();
});

function showModal(){
	resizeKanban();
}

function closeModal(){
	resizeKanban();
}
